﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;
using System.ServiceModel;


namespace Model
{
    [DataContract]
    public class CinemaHall
    {
        [DataMember]
        private List<Seat> seats;
        [DataMember]
        private string name;

        public CinemaHall(List<Seat> seats, String name)
        {
            this.seats = seats;
            this.name = name;
        }
        public CinemaHall()
        {
            seats = new List<Seat>();
            name = "";
        }
        public String Name
        {
            get { return name; }
            set { name = value; }
        }
        public void AddSeat(Seat seat)
        {
            seats.Add(seat);
        }
        public void RemoveSeat(Seat seat)
        {
            seats.Remove(seat);
        }
        public List<Seat> Seats
        {
            get { return seats; }
            set { seats = value; }
        }
        public override string ToString()
        {
            return this.name;
        }
    }
}
